package com.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.model.City;
import com.service.QhService;

@Controller
@RequestMapping(value = "/QH")
public class QhController {

	@Autowired
	private QhService qhService;
	
	@RequestMapping(value = "/qh", method = RequestMethod.GET)
	public @ResponseBody Map<String,Object> getQh(){
		return qhService.getAll();
		
	}

}
